package cn.tedu._04mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class OrderController {
    @RequestMapping("/v1/orders/add")
    @ResponseBody
    public String addOrder(){
        return "创建成功，可以随意输出了";
    }

    @RequestMapping("/v1/orders/list")
    @ResponseBody
    public String listOrder(){
        return "查询成功，继续输出";
    }

    @RequestMapping("/v1/orders/delete")
    @ResponseBody
    public String deleteOrder(){
        return "删除成功，继续瞎写你试试";
    }

    @RequestMapping("/v1/orders/update")
    @ResponseBody
    public String updateOrder(){
        return "修改成功，不准瞎写";
    }







}
